package com.csun.cmny.provider.model.dto.propertyManagement;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
public class PropertyManagementDeviceUpdateDto {

    @NotNull(message = "{device.id.null}")
    private Long deviceId;

    /**
     * 设备编号
     */
    private String deviceNo;

    /*设备名称*/
    private String deviceName;

    /**
     * 设备版本
     */
    private String deviceVersion;



    /**
     * 描述
     */
    private String remark;




    /*批次*/
    private String batch;

    /*客户编号*/
    private String customerNo;


    /*出货日期*/
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date shipmentDate;

    /*初始化日期*/
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date initializeDate;



    /*物管备注*/
    private String managentRemark;

}
